﻿using System.Threading;

namespace EmbeddedSharp.Scripting.Function.Debugging {
    public class BreakpointNode : ContextFuncNode {
        public BreakpointNode()
            : base("breakpoint") {
        }

        public override object Evaluate() {
            Thread.CurrentThread.Suspend();

            return string.Empty;
        }
    }
}
